From 7c891d56e52eb3dad37103f6b58a619d63089bfa Mon Sep 17 00:00:00 2001 From: Rob Church Date: Wed, 17 May 2006 07:02:06 +0000 Subject: [PATCH] (bug 5819) Fix the PersonalUrls hook so it's useful --- docs/hooks.txt | 2 +- includes/SkinTemplate.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index 1f215be5b0..f39165a636 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -376,7 +376,7 @@ $hash: reference to a hash key string which can be modified my talk page, my contributions" etc). &$personal_urls: Array of link specifiers (see SkinTemplate.php) -$title: Title object representing the current page +&$title: Title object representing the current page 'TitleMoveComplete': after moving an article (title) $old: old title diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index ae392a0159..afed9e7391 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -525,8 +525,8 @@ class SkinTemplate extends Skin { ); } } - - wfRunHooks( 'PersonalUrls', array( $personal_urls, $wgTitle ) ); + + wfRunHooks( 'PersonalUrls', array( &$personal_urls, &$wgTitle ) ); wfProfileOut( $fname ); return $personal_urls; } -- 2.20.1